﻿//界面风格枚举
var ISS_MAP_TYPE_ENUM = {
    //默认地图样式
    normal: "normal",
    //清新蓝风格
    light: "light",
    //黑夜风格
    dark: "dark",
    //红色警戒风格
    redalert: "redalert",
    //精简风格
    googlelite: "googlelite",
    //自然绿风格
    grassgreen: "grassgreen",
    //午夜蓝风格
    midnight: "midnight",
    //浪漫粉风格
    pink: "pink",
    //青春绿风格
    darkgreen: "darkgreen",
    //清新蓝绿风格
    bluish: "bluish",
    //高端灰风格
    grayscale: "grayscale",
    //强边界风格
    hardedge: "hardedge"
};

//界面风格
var ISS_MAP_TYPE = ISS_MAP_TYPE_ENUM.normal;

//查询方式-驾车、步行、公交
var ISS_MAP_SEARCHTYPE = "1";

//起始点参数
var ISS_MAP_SEARCH_START = {
    Lng: "",
    Lat: "",
    Name: ""
};

//结束点参数
var ISS_MAP_SEARCH_END = {
    Lng: "",
    Lat: "",
    Name: ""
};

//默认地图中心--荔波
//var ISS_MAP_CENTER_LNG = '107.893299';
//var ISS_MAP_CENTER_LAT = '25.41858';

////默认地图中心--武汉
//var ISS_MAP_CENTER_LNG = '114.295533';
//var ISS_MAP_CENTER_LAT = '30.555015';

////默认地图中心--野山坡
var ISS_MAP_CENTER_NAME = '余庆';
var ISS_MAP_CENTER_LNG = '107.912457';
var ISS_MAP_CENTER_LAT = '27.222132';

////默认地图中心--新县
//var ISS_MAP_CENTER_NAME = '新县';
//var ISS_MAP_CENTER_LNG = '114.886391';
//var ISS_MAP_CENTER_LAT = '31.650216';

////默认地图中心--新县
//var ISS_MAP_CENTER_NAME = '新县';
//var ISS_MAP_CENTER_LNG = '114.886391';
//var ISS_MAP_CENTER_LAT = '31.650216';

//默认地图中心--新县
// var ISS_MAP_CENTER_NAME = _type; // '新县';
// var ISS_MAP_CENTER_LNG = iss_dictionaryBaseData.longitude; // '114.886391';
// var ISS_MAP_CENTER_LAT = iss_dictionaryBaseData.latitude; // '31.650216';

//当前坐标
var ISS_MAP_LOCAL_LNG = '';
var ISS_MAP_LOCAL_LAT = '';
var ISS_MAP_LOCAL_NAME = '';

//基础数据
var ISS_MAP_BASEDATA = {
    AttrStartLevel: function (code) {
        var startlevel = {
            text: "",
            value: ""
        };
        switch (code) {
            case "128005":
                startlevel.text = "1A景区";
                startlevel.value = "1";
                break;
            case "128004":
                startlevel.text = "2A景区";
                startlevel.value = "2";
                break;
            case "128003":
                startlevel.text = "3A景区";
                startlevel.value = "3";
                break;
            case "128002":
                startlevel.text = "4A景区";
                startlevel.value = "4";
                break;
            case "128001":
                startlevel.text = "5A景区";
                startlevel.value = "5";
                break;
            default:
                startlevel.text = "未定星级";
                startlevel.value = "0";
                break;
        }
        return startlevel;
    },
    HotelStartLevel: function (code) {
        var startlevel = {
            text: "",
            value: ""
        };
        switch (code) {
            case "129005":
                startlevel.text = "1A酒店";
                startlevel.value = "1";
                break;
            case "129004":
                startlevel.text = "2A酒店";
                startlevel.value = "2";
                break;
            case "129003":
                startlevel.text = "3A酒店";
                startlevel.value = "3";
                break;
            case "129002":
                startlevel.text = "4A酒店";
                startlevel.value = "4";
                break;
            case "129001":
                startlevel.text = "5A酒店";
                startlevel.value = "5";
                break;
            default:
                startlevel.text = "未定星级";
                startlevel.value = "0";
                break;
        }
        return startlevel;
    }
}

var ISS_Map_BaseElement_XX = {
    Toilet: function () {
        var points = [
        { lon: 114.884064, lat: 31.633625 }, { lon: 114.881792, lat: 31.634253 }, { lon: 114.885457, lat: 31.641603 }, { lon: 114.886575, lat: 31.656573 }, { lon: 114.890555, lat: 31.650517 },
        { lon: 114.889813, lat: 31.644688 }, { lon: 114.881832, lat: 31.62728 }, { lon: 114.885398, lat: 31.624218 }, { lon: 114.884275, lat: 31.622935 }, { lon: 114.880821, lat: 31.622987 },
        { lon: 114.88119, lat: 31.626842 }, { lon: 114.882649, lat: 31.627729 }, { lon: 114.881059, lat: 31.63016 }, { lon: 114.881122, lat: 31.630224 }, { lon: 114.886566, lat: 31.649743 },
        { lon: 114.999553, lat: 31.493918 }, { lon: 115.000937, lat: 31.488889 }, { lon: 114.885504, lat: 31.648692 }, { lon: 114.88342, lat: 31.668029 }, { lon: 114.884054, lat: 31.669988 },
        { lon: 114.878996, lat: 31.63605 }, { lon: 114.869586, lat: 31.621221 }, { lon: 114.880438, lat: 31.618576 }, { lon: 114.882324, lat: 31.609157 }, { lon: 114.882796, lat: 31.61272 },
        { lon: 114.914816, lat: 31.593158 }, { lon: 114.913819, lat: 31.589802 }, { lon: 114.992133, lat: 31.543759 }, { lon: 114.991289, lat: 31.545821 }, { lon: 115.035301, lat: 31.635464 },
        { lon: 115.035517, lat: 31.634787 }, { lon: 115.030073, lat: 31.625256 }, { lon: 114.886225, lat: 31.638359 }, { lon: 114.894738, lat: 31.648376 }, { lon: 114.89194, lat: 31.627327 },
        { lon: 114.902473, lat: 31.624604 }, { lon: 114.895017, lat: 31.544352 }, { lon: 114.992182, lat: 31.542329 }
       ];
        return points;
    },
    Bike: function () {
        var points = [
        { lon: 114.884518, lat: 31.629098 }, { lon: 114.881819, lat: 31.633984 }, { lon: 114.885856, lat: 31.644193 }, { lon: 114.886584, lat: 31.649726 }, { lon: 114.886409, lat: 31.65464 },
        { lon: 114.888228, lat: 31.659324 }, { lon: 114.89099, lat: 31.656173 }, { lon: 114.887617, lat: 31.639975 }, { lon: 114.884204, lat: 31.622873 }, { lon: 114.882088, lat: 31.622233 },
        { lon: 114.881185, lat: 31.626938 }, { lon: 114.880943, lat: 31.62923 }, { lon: 114.880372, lat: 31.633671 }, { lon: 114.876766, lat: 31.646662 }, { lon: 114.886566, lat: 31.649743 },
        { lon: 114.867359, lat: 31.61504 }, { lon: 114.882028, lat: 31.612599 }, { lon: 114.882688, lat: 31.60916 }, { lon: 114.883489, lat: 31.617918 }, { lon: 114.890397, lat: 31.608454 },
        { lon: 114.890289, lat: 31.627734 }, { lon: 114.897422, lat: 31.625567 }
        ];
        return points;
    },
    Park: function () {
        var points = [
        { lon: 114.882667, lat: 31.627583 }, { lon: 114.882182, lat: 31.622683 }, { lon: 114.999508, lat: 31.494395 }, { lon: 115.001031, lat: 31.490163 }, { lon: 115.000869, lat: 31.48944 },
        { lon: 114.875942, lat: 31.637793 }, { lon: 114.88263, lat: 31.609818 }, { lon: 114.882284, lat: 31.623171 }, { lon: 114.992457, lat: 31.541035 }, { lon: 114.91368, lat: 31.594675 },
        { lon: 31.594675, lat: 31.63551 }, { lon: 115.030073, lat: 31.625256 }, { lon: 114.88421, lat: 31.622861 }
        ];
        return points;
    },
    Hospital: function () {
        var points = [
        { lon: 114.88172, lat: 31.634092 }, { lon: 114.880025, lat: 31.627248 }, { lon: 114.886575, lat: 31.652191 }
        ];
        return points;
    },
    PassengerStation: function () {
        var points = [
        { lon: 114.876642, lat: 31.646857 }
        ];
        return points;
    },
    Logistics: function () {
        var points = [
        { lon: 114.882284, lat: 31.623171 }, { lon: 115.030073, lat: 31.625256 }, { lon: 114.884084, lat: 31.646326 }, { lon: 114.874409, lat: 31.630612 }, { lon: 114.882591, lat: 31.628909 }
        ];
        return points;
    },
    AutoMobile: function () {
        var points = [
        { lon: 114.876051, lat: 31.64845 }, { lon: 114.876451, lat: 31.648446 }, { lon: 114.876451, lat: 31.648446 }, { lon: 114.87659, lat: 31.650364 }, { lon: 114.876595, lat: 31.65049 },
        { lon: 114.877066, lat: 31.652669 }, { lon: 114.87655, lat: 31.652946 }, { lon: 114.877179, lat: 31.653042 }, { lon: 114.877197, lat: 31.65547 }, { lon: 114.878064, lat: 31.656442 }
        ];
        return points;
    },
    Gymnasium: function () {
        var points = [
        { lon: 114.890339, lat: 31.655399 }, { lon: 114.889441, lat: 31.655768 }
        ];
        return points;
    },
    Barbucue: function () {
        var points = [
        { lon: 114.891031, lat: 31.654492 }, { lon: 114.884473, lat: 31.628465 }
        ];
        return points;
    },
    Market: function () {
        var points = [
        { lon: 114.886321, lat: 31.646501 }, { lon: 114.881174, lat: 31.626368 }, { lon: 114.880708, lat: 31.628414 }, { lon: 114.889488, lat: 31.643047 }
        ];
        return points;
    },
    Attrac: function () {
        var points = [
         { lon: 114.90727, lat: 31.620414 }, { lon: 114.908545, lat: 31.607034 }
         ];
        return points;
    },
    Service: function () {
        var points = [
         { lon: 115.392261, lat: 39.675236 }, { lon: 115.416555, lat: 39.767323 }
         ];
        return points;
    }
}